package org.demo.api.rest;

import io.swagger.annotations.ApiOperation;
import org.demo.api.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserServiceResource {
    @Autowired
    private UserService userService;

    @GetMapping("user")
    @ApiOperation("")
    public void getUsers() {
        userService.findAll();
    }
}
